package com.sino.struts2;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.sino.business.IPatentManageStatService;
import com.sino.business.IStaticDataService;
import com.sino.model.XkModel;

public class ZyStatAction extends ActionSupport {
	

	private IStaticDataService staticDataService;
	private IPatentManageStatService patentManageStatService;
	
	private List zyStatList;

	private String zy;// 基本表推荐单位
	private int  patentAllCount;//专利总数
	private List basicInfoList;
	private String zytype;// 基本表推荐单位
	public String getPatentStatByZy() {
		patentAllCount=this.getPatentManageStatService().getPatentStatAllCount();
		zyStatList =this.getPatentManageStatService().getPatentStatByZy();
		return SUCCESS;

	}
	public void setPatentAllCount(int patentAllCount) {
		this.patentAllCount = patentAllCount;
	}
	public String getPatentStatListByZy(){
		
		basicInfoList=this.getPatentManageStatService().getPatentStatByZy(zy);
		XkModel xm=new XkModel();
		xm.setId(zy);
		xm=this.getPatentManageStatService().getPatentStatByZy(xm);
		zytype=xm.getName();
		return SUCCESS;
		
	}
	public List getBasicInfoList() {
		return basicInfoList;
	}
	public void setBasicInfoList(List basicInfoList) {
		this.basicInfoList = basicInfoList;
	}

	
	public IStaticDataService getStaticDataService() {
		return staticDataService;
	}
	public void setStaticDataService(IStaticDataService staticDataService) {
		this.staticDataService = staticDataService;
	}
	public String getZy() {
		return zy;
	}
	public void setZy(String zy) {
		this.zy = zy;
	}
	public List getZyStatList() {
		return zyStatList;
	}
	public void setZyStatList(List zyStatList) {
		this.zyStatList = zyStatList;
	}
	public String getZytype() {
		return zytype;
	}
	public void setZytype(String zytype) {
		this.zytype = zytype;
	}
	public IPatentManageStatService getPatentManageStatService() {
		return patentManageStatService;
	}
	public void setPatentManageStatService(
			IPatentManageStatService patentManageStatService) {
		this.patentManageStatService = patentManageStatService;
	}
	public int getPatentAllCount() {
		return patentAllCount;
	}

}
